Skip to content

chore: fix fusion-lint warnings in module-app and module-navigation - #5343

Merged
odinr merged 3 commits into
mainfrom
chore/fusion-lint-warnings
Aug 19, 2026
Merged

chore: fix fusion-lint warnings in module-app and module-navigation#5343
odinr merged 3 commits into
mainfrom
chore/fusion-lint-warnings

Conversation

@odinr

@odinr odinr commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Why is this change needed?
fusion-lint lint packages reported two warn-level diagnostics that were not yet resolved: a single-export-per-file warning in schemas.ts and four require-intent-comment/flow warnings in NavigationProvider.ts.

What is the current behavior?

  • FrameworkOptionsSchema was the only export in schemas.ts without the file's existing co-location-suppression comment, even though it's intentionally exported alongside ApiApplicationBuildSchema/ApiApplicationSchema, which already use that convention.
  • The for, if, if, and while blocks in normalizePathname/stripTrailingSlashes had no intent comments.

What is the new behavior?

  • FrameworkOptionsSchema now has the same // Deliberately co-located ... fusion-lint-disable-next-line single-export-per-file comment pattern already used elsewhere in the file.
  • Each flagged control-flow block now has a one-line intent comment explaining why it exists.

What is the intended behavior or invariant?
No functional change — comment-only fixes to satisfy fusion-lint's single-export-per-file and require-intent-comment/flow rules.

Does this PR introduce a breaking change?
No.

Impact assessment:

  • Breaking changes: No
  • Version bump: Patch (changeset added for both packages)
  • Consumer impact: None
  • Downstream impact: None

Review guidance:
Comment-only changes; verified with fusion-lint lint packages/modules/app packages/modules/navigation (no problems found) and biome check on both files.

Additional context
None.

Related issues
None.

Checklist

  • Confirm completion of the self-review checklist
  • Confirm TSDoc captures intent for functions, hooks, components, classes, and named arrow functions
  • Confirm iterator blocks, decision gates, RxJS chains, and complex decisions explain why they exist
  • Confirm React logic and derived values are resolved before markup when applicable
  • Confirm README/docs are updated for user-facing changes
  • Confirm changes to target branch validation
    • Included files validated
    • No new linting warnings
    • Not a duplicate PR
  • Confirm adherence to code of conduct

@odinr
odinr requested a review from a team as a code owner August 19, 2026 17:12
@changeset-bot

changeset-bot Bot commented Aug 19, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 6f6fc2f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@equinor/fusion-framework-module-app Patch
@equinor/fusion-framework-module-navigation Patch
@equinor/fusion-framework-app Patch
@equinor/fusion-framework-cli Patch
@equinor/fusion-framework-dev-portal Patch
@equinor/fusion-framework-module-analytics Patch
@equinor/fusion-framework-react-app Patch
poc-portal Patch
portal-analytics Patch
portal Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added 🚧 chore maintaines work, (update deps, workflos ...) 🧬 Modules 🐞 bug Something isn't working labels Aug 19, 2026
odinr added 3 commits August 19, 2026 19:47
- schemas.ts: mark FrameworkOptionsSchema as intentionally co-located,
  matching the existing suppression convention for the other schemas in
  this file (single-export-per-file).
- NavigationProvider.ts: add intent comments to the for/if/while blocks
  in normalizePathname and stripTrailingSlashes (require-intent-comment/flow).
actions/checkout pins ref to the PR head SHA, so it only fetches that
commit's history and never creates a local/remote-tracking ref for main.
turbo's --affected then fails to resolve main as a merge-base ('ambiguous
argument main'), silently falling back to building every package instead
of just the affected ones. Fetch origin main explicitly before running
the affected build.
git fetch origin main only populates FETCH_HEAD, which turbo's --affected
merge-base lookup can't resolve as 'main'. Fetch directly into a local
main branch ref instead.
@odinr
odinr force-pushed the chore/fusion-lint-warnings branch from 95e3195 to 6f6fc2f Compare August 19, 2026 17:47
@odinr
odinr merged commit 4a00a7a into main Aug 19, 2026
8 checks passed
@odinr
odinr deleted the chore/fusion-lint-warnings branch August 19, 2026 17:47
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.37% 4052 / 6014
🔵 Statements 67.09% 4821 / 7185
🔵 Functions 53.7% 1385 / 2579
🔵 Branches 55.95% 2137 / 3819
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/modules/navigation/src/NavigationProvider.ts 86.84% 77.55% 77.27% 86.3% 137-143, 250-260, 278-321
Generated in workflow #15497 for commit 6f6fc2f by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working 🚧 chore maintaines work, (update deps, workflos ...) 🧬 Modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant